Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / *specification.md
Last active November 12, 2026 13:25
TikTok-like recommender Algorithm

Detailed Technical Algorithm for a TikTok-like Recommendation System


1. Introduction

The objective is to develop a recommendation system that maximizes user engagement by analyzing a multitude of user interaction signals to present the most appealing content. The system optimizes for two key metrics:

  • User Retention: Encouraging users to return to the platform.
  • Time Spent: Increasing the duration users spend on the platform per session.
@pvieito
pvieito / amfid_patch.py
Created December 27, 2016 00:14
This script can patch macOS 10.12.2 amfid daemon on memory to allow arbitrary entitlements in Developer ID signed binaries.
#!/usr/bin/env python3
'''amfid_patch.py - Pedro José Pereira Vieito © 2016
This script can patch macOS 10.12.2 amfid daemon on memory
to allow arbitrary entitlements in Developer ID signed binaries.
Killing amfid will make the patch disapear:
$ sudo kill -9 `pgrep amfid`
You must run the script as a root (sudo) and with SIP disabled.
@alexedwards
alexedwards / cache.go
Last active November 12, 2026 13:15
Generic in-memory cache implementation in Go
package cache
import (
"sync"
"time"
)
// Cache is a basic in-memory key-value cache implementation.
type Cache[K comparable, V any] struct {
items map[K]V // The map storing key-value pairs.
@mehh
mehh / OWASP-Top-10-Agent-Security-Audit-Prompt.md
Created October 23, 2026 04:43
Agent prompt: OWASP Top 10 security audit + remediation plan (defensive). Paste into Cursor/Claude Code/Codex.

Agent Security Audit Prompt — OWASP Top 10 (2026)

How to use: Paste this entire document into Cursor, Claude Code, Codex, or any coding agent with repo access. Point it at your application root. Do not ask it to exploit production. This is a defensive audit: find issues, prove them safely, and ship a remediation plan.


Mission

You are a senior application security engineer. Perform a thorough read-only-first security audit of this codebase against the OWASP Top 10 (current / 2025–2026 edition) plus modern failure modes common in AI-assisted ("vibe coded") apps.

@PhirePhly
PhirePhly / ISA.txt
Created March 26, 2012 20:42
Intro to the ISA bus by Mark Sokos
THE ISA AND PC/104 BUS
IBM, IBM/XT, IBM PC, and IBM PC AT are registered trademarks of
International Business Machines Corporation.
This file is designed to give a basic overview of the bus found in
most IBM clone computers, often referred to as the XT or AT bus. The
AT version of the bus is upwardly compatible, which means that cards
@jaames
jaames / fancy-css-links.md
Last active November 12, 2026 13:09
Fancy CSS link underlines with inline SVGs (plus embedded animations!)
/*
1. Go to https://www.typingstudy.com and select which lesson you want to cheat.
2.1 Press and hold "Space bar" and some letter until the test finish.
2.2 Do the test until you see your typing resault.
3. Open developer tools' console and paste this code, then hit enter.
4. Edit "Exercise time" and "typing speed" to anyting you want by use inspector(Firefox) or Elements(Chrome).
*/
for (let e of document.getElementsByClassName("result")) {
e.innerHTML = e.innerHTML.slice(e.innerHTML.indexOf("/") + 1) + "/" + e.innerHTML.slice(e.innerHTML.indexOf("/") + 1);
e.style = "background-position:500px 0;";
@sundowndev
sundowndev / GoogleDorking.md
Last active November 12, 2026 13:06
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"

FFXIV TeamCraft — Linux Guide

This guide covers Linux-specific setup, configuration, and troubleshooting for the TeamCraft desktop app (AppImage).

You can download the AppImage here: https://ffxivteamcraft.com/desktop

Before using these instructions, first try using the "auto-detect" button in the TeamCraft desktop settings. If packet capture still doesn't work with the auto-detected settings, then use these instructions to correct it.